package com.lifeng;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Created by lifeng on 2019/3/18.
 * dataId 必须先在nacos中建立
 */
@SpringBootApplication
@NacosPropertySource(dataId = "mynacos.config",groupId = "MY_GROUP" ,autoRefreshed = true)
@NacosPropertySource(dataId = "mynacos.config1",autoRefreshed = true)
public class ServiceNacosConfigStartup {
    public static void main(String[] args) {
        SpringApplication.run(ServiceNacosConfigStartup.class, args);
    }
}
